package cn.bdqn.mallmgr.tools;

import com.alibaba.fastjson.JSONObject;
import org.springframework.util.DigestUtils;

public class TokenTool {

    public static String createToken(Object obj) {
        return DigestUtils.md5DigestAsHex(JSONObject.toJSONBytes(obj));
    }
}
